#!dice
FROM node:14.15.4
MAINTAINER Vico <k  {aT} terminus.io>

RUN mkdir -p /code

WORKDIR /code

COPY package.json /code

RUN npm set registry https://registry.npm.taobao.org
RUN npm set node_sqlite3_binary_host_mirror http://npm.taobao.org/mirrors/

RUN npm install --production

COPY .  /code

# Entrypoint
CMD ["node", "dispatch.js"]

